#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>

int main(int argc, char *argv[])
{
    uint16_t a = 12, b = 88, c1 = 0;
    int32_t c = a - b;
    c1 = a - b;

    printf("%d  %d  %d  %d  %d %d\n",
           a - b,
           c,
           abs(c),
           c1,
           0xffff - c1 + 1,
           0xffff - (uint16_t)c + 1);

    if ((a - b) < 0)
    {
        printf("%d \n", 0xffff - c1 + 1);
    }

    return 0;
}

// D:\fanyi\FStudio 2.x\Macro\Compiler\MinGW\bin